"""
代理 ip 可以在这个https://www.zdaye.com/free/网站寻找
访问百度：https://www.baidu.com/
"""
import requests

proxies = {
    # "https": "https://118.178.197.213:3128"
    "https": "118.178.197.213:3128"
}

with requests.get('https://www.baidu.com/', proxies=proxies) as response:
    response.encoding = 'utf-8'
    print(response.status_code)
    print(response.text)
